package cn.yqx.bankshop.order.service;

import cn.yqx.bankshop.order.page.PageRequest;
import cn.yqx.bankshop.order.page.PageResult;
import cn.yqx.bankshop.order.pojo.BuGoodsAddress;

import java.util.Map;

public interface AddressService {

    PageResult findAddressByUserId(PageRequest pageRequest , Map<String,Object> map) ;

    int saveAddress(BuGoodsAddress address) ;

    int updateAddress(BuGoodsAddress address) ;

    int setIsDefault(Long id,Long userId) ;

    int deleteAddress(Long id) ;
}
